package com.qf.device.mapper;

import com.qf.device.entity.DeviceTopic;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * Topic主题表 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2023-10-26
 */
@Mapper
public interface DeviceTopicMapper extends BaseMapper<DeviceTopic> {

    @Select("select * from qf_device_topic where device_key = #{deviceKey}")
    List<DeviceTopic> findByDeviceKey(String deviceKey);
}
